package com.shanjupay.merchant.service;

import java.util.Map;

/**
 * @Author xiams
 * @Date: 2021/5/21 11:15
 */
public interface SmsService {

    /**
     * 用户发送验证码
     *
     * @param phone
     * @return
     */
    Map<String, String> sendSmsCode(String phone);

    /**
     * 获取缓存中手机号码
     *
     * @param key
     * @return
     */
    String getCachePhone(String key);

    /**
     * 校验手机验证码
     *
     * @param verificationKey
     * @param verificationCode
     */
    void validateCode(String verificationKey, String verificationCode);
}
